Skip to content

CI: tag pull request image builds pr-<number> - #3

Merged
stackblaze-adam merged 1 commit into
devfrom
claude/pr-image-tag
Nov 26, 2026
Merged

stackblaze-adam merged 1 commit into
devfrom
claude/pr-image-tag

Conversation

@stackblaze-adam

Copy link
Copy Markdown
Contributor

What

Every pull request in this repo failed its build check at the last step, after the site had type-checked and built:

ERROR: failed to build: invalid tag "ghcr.io/stackblaze/stackblaze-docs:2/merge": invalid reference format

On a pull request github.ref_name is <number>/merge, and / is not allowed in an image tag. The PR build is never pushed, so its tag only has to be valid: it is now pr-<number>. Pushes to main and dev keep the branch name and the sha- tag, unchanged.

Tested

This PR's own build check is the test: it is the first PR build that should pass.

🤖 Generated with Claude Code

On a pull request github.ref_name is '<number>/merge', which is not a
valid image tag, so the docker build step failed on every PR after the
site itself had built. The PR build (never pushed) is now tagged
pr-<number>; pushes to main and dev keep the branch name.

Agent: claude
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@stackblaze-adam
stackblaze-adam merged commit 1bfc557 into dev Nov 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant